package cn.com.pet.common.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.pet.common.dao.UserMapper;
import cn.com.pet.common.entity.User;
import cn.com.pet.common.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper userMapper;

	@Override
	public List<User> getUsers(User user) {
		// TODO Auto-generated method stub
		return userMapper.getUsers(user);
	}

	@Override
	public void addUser(User user) {
		// TODO Auto-generated method stub
		userMapper.addUser(user);
	}

	@Override
	public void updateUser(User user) {
		// TODO Auto-generated method stub
		userMapper.updateUser(user);
	}

	@Override
	public User getUserByUserName(User user) {
		// TODO Auto-generated method stub
		return userMapper.getUserByUserName(user);
	}

}
